import { ajaxGet } from '@/util'

export default ({
  state: {
    currentDepartment: {}, // 当前点击部门
  },
  mutations: {
    setCurrentDepartment(state, dpt) {
      state.currentDepartment = dpt
    }
  },
  actions: {
    getCurrentDepartment({ commit, dispatch, state }, dpt) {
      commit('setCurrentDepartment', dpt)
    }
  },
  getters: {
    currentDepartment: (state) => state.currentDepartment
  }
})
